// wep.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
	double length;
	double height;
	double radius;
	double side;
	double width;
	double base;
	string shape;
	cout << "Which shape do you need?: ";
		if (string == "Rectangle"||string == "rectangle") {
		cout << endl;
		cout << "Height?: ";
		cin >> height;
		cout << endl;
		cout << "Length?: ";
		cin >> length;
		cout << endl;
		cout << "The area is ";
		cout << length*width;
		}
		else if (string == "Square"||string == "square") {
		cout << endl;
		cout << "Sides?: ";
		cin >> side;
		cout << endl;
		cout << "The area is ";
		cout << side*side;
		}
		else if (string == "Circle"||string == "circle") {
		cout << endl;
		cout << "Radius?: ";
		cin >> radius;
		cout << endl;
		cout << "The area is ";
		cout << 2*3.14*radius;
		}
		else if (string == "Triangle"||string == "triangle") {
		cout << endl;
		cout << "Base?: ";
		cin >> base;
		cout << endl;
		cout << "Height?: ";
		cin >> height;
		cout << endl;
		cout << "The area is ";
		cout << 0.5*base*height;
		}
	cout << " \n";
	system("PAUSE");
	return 0;
}

